package win.bigwhale.sudoku.view;

import javafx.geometry.Insets;
import javafx.scene.layout.Background;
import javafx.scene.layout.BackgroundFill;
import javafx.scene.layout.CornerRadii;
import javafx.scene.layout.Pane;
import javafx.scene.paint.Color;
import win.bigwhale.sudoku.SudokuUtil;

public class ControlAndInfoPane extends Pane {
	private static ControlAndInfoPane controlAndInfoPane = new ControlAndInfoPane();

	private ControlAndInfoPane() {
		setPrefSize(SudokuUtil.CONTROL_AND_INFO_PANE_WIDTH, SudokuUtil.PLAY_FIELD_WIDTH);
		setBackground(new Background(new BackgroundFill(Color.CYAN, CornerRadii.EMPTY, Insets.EMPTY)));
		setLayoutX(555.0);
		setLayoutY(50.0);
		getChildren().add(TimePane.getTimePane());
		getChildren().add(LevelPane.getLevelPane());
		getChildren().add(ControlButtonPane.getControlButtonPane());
	}

	public static ControlAndInfoPane getControlAndInfoPane() {
		return controlAndInfoPane;
	}
}
